import AuthFrame from '@/components/Auth/AuthFrame'

import Login from '@/components/Auth/Login/Login'

import Enroll from '@/components/Auth/Enroll/Enroll'
import EnrollForm from '@/components/Auth/Enroll/EnrollForm'
import ProfileForm from '@/components/Auth/Enroll/ProfileForm'

export default {
  path: '/auth',
  component: AuthFrame,
  children: [
    {
      path: '/',
      redirect: {
        name: 'Login'
      }
    },
    {
      path: 'login',
      name: 'Login',
      component: Login
    },
    {
      path: 'enroll',
      component: Enroll,
      children: [
        {
          path: 'register',
          name: 'EnrollRegister',
          component: EnrollForm
        },
        {
          path: 'profile',
          name: 'EnrollProfile',
          component: ProfileForm,
          meta: { login: true, admin: false }
        }
      ]
    }
  ]
}
